package com.springmvc.api.controller;

import com.springmvc.api.response.Response;
import com.springmvc.api.security.IgnoreSecurity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cheng.xi on 11/30/15.
 */
@RestController
public class ArticleController {

    @IgnoreSecurity
    @RequestMapping(value = "/article/{id}",method = RequestMethod.GET)
    public Response getArticle(@PathVariable("id") String articleId){

        return new Response().success();
    }
}
